package com.example.demo.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author JiJunpeng
 * @date 2018/7/25
 */
@AllArgsConstructor
@Getter
@ToString
public enum CodeMessageEnum {
    //@formatter:off
    SUCCESS                                                         ("100000", "成功"),
    SYSTEM_ERROR                                                    ("200000", "系统错误"),
    COMMON_PARAM_ERROR                                              ("200001", "参数错误"),

    //@formatter:on
    ;
    private final String code;
    private final String message;
}
